﻿@using ExampleWebApplication.Controllers
@using ExampleWebApplication.Models
@using ExampleWebApplication.Properties
<h2>
    @EntityFrameworkStrings.Example4
</h2>
@(Html.Telerik().Grid<OrderModel>().Name("Grid")
        .Columns(columns =>
        {
            columns.Bound(d => d.Id).Width(80);
            columns.Bound(d => d.RecipientName);
            columns.Bound(d => d.RecipientAddress);
            columns.Bound(d => d.RecipientCity);
            columns.Bound(d => d.Customer.CustomerName);
            columns.Bound(d => d.Employee.EmployeeName);
            columns.Bound(d => d.Shipper.CompanyName);
        })
        .EnableCustomBinding(true).Sortable().Filterable().Groupable().Pageable(x => x.PageSize(15))
        .DataBinding(dataBinding => dataBinding.Ajax().Select<EntityFrameworkController>(ctr => ctr.MappingTechniquesData(null))))